package com.example.moduleName.nbm;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: ronglian-read-data
 * @Package: com.example.moduleName.nbm
 * @ClassName: DisplayBoardRes
 * @Author: liuzhijie
 * @Description: 税前净利润
 * @Date: 2024/5/27 11:32
 * @Version: 1.0
 */
@NoArgsConstructor
@Data
public class DisplayBoardRes {

    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("message")
    private String message;
    @JsonProperty("data")
    private DataDTO data;


    @Data
    public static class DataDTO {
        @JsonProperty("profit")
        private ProfitDTO profit;
        @JsonProperty("afterSales")
        private AfterSalesDTO afterSales;
        @JsonProperty("newCar")
        private NewCarDTO newCar;


        @Data
        public static class ProfitDTO {
            @JsonProperty("profitDealerYoyMom")
            private String profitDealerYoyMom;
            @JsonProperty("profitDealerCountYoyMom")
            private String profitDealerCountYoyMom;
            @JsonProperty("rosYoyMom")
            private String rosYoyMom;
            @JsonProperty("earnings")
            private String earnings;
            @JsonProperty("expenseRatioYoyMom")
            private String expenseRatioYoyMom;
            @JsonProperty("dealerCountAll")
            private Integer dealerCountAll;
            @JsonProperty("profitDealerRatio")
            private String profitDealerRatio;
            @JsonProperty("ros")
            private String ros;
            @JsonProperty("earningsYoyMom")
            private String earningsYoyMom;
            @JsonProperty("expenseRatio")
            private String expenseRatio;
            @JsonProperty("totalRevenue")
            private String totalRevenue;
            @JsonProperty("dealerCountAllYoyMom")
            private String dealerCountAllYoyMom;
            @JsonProperty("profitDealerCount")
            private Integer profitDealerCount;
            @JsonProperty("grossProfit")
            private String grossProfit;
            @JsonProperty("totalExpense")
            private String totalExpense;
        }


        @Data
        public static class AfterSalesDTO {
            @JsonProperty("afterSalesPerCent")
            private String afterSalesPerCent;
            @JsonProperty("avgAfterSalesProfit")
            private String avgAfterSalesProfit;
            @JsonProperty("afterSalesPerCentYoyMom")
            private String afterSalesPerCentYoyMom;
            @JsonProperty("avgAfterSalesProfitYoyMom")
            private String avgAfterSalesProfitYoyMom;
        }


        @Data
        public static class NewCarDTO {
            @JsonProperty("avgNewCarGp3Ratio")
            private String avgNewCarGp3Ratio;
            @JsonProperty("avgNewCarProfit")
            private String avgNewCarProfit;
            @JsonProperty("avgNewCarGp3")
            private String avgNewCarGp3;
            @JsonProperty("avgNewCarGp3RatioYoyMom")
            private String avgNewCarGp3RatioYoyMom;
            @JsonProperty("avgNewCarProfitYoyMom")
            private String avgNewCarProfitYoyMom;
            @JsonProperty("avgNewCarGp3YoyMom")
            private String avgNewCarGp3YoyMom;
        }
    }
}
